<!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->

<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->

<!--[if !IE]><!-->

<html lang="en" class="no-js">

<!--<![endif]-->

<!-- BEGIN HEAD -->

<head>

    <include file="Inc/basic_css"/>

    <include file="Inc/basic_js"/>

    <import type="js" basepath="__JS__" file="AjaxFileUpload,imgpre,admin" />

    <import type="js" basepath="__PLUGIN__" file="ueditor.ueditor#config,ueditor.ueditor#all#min,ueditor.lang.zh-cn.zh-cn" />

    <link rel="stylesheet" type="text/css" href="__PLUGIN__/bootstrap-datepicker/css/datepicker.css" />

    <script type="text/javascript" src="__PLUGIN__/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>

</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="page-header-fixed" onload="init();">

<!-- BEGIN HEADER -->

<include file="Inc/head"/>

<!-- END HEADER -->

<div class="clearfix"></div>

<!-- BEGIN CONTAINER -->

<div class="page-container">

    <!-- BEGIN SIDEBAR -->

    <include file="Inc/left"/>

    <!-- END SIDEBAR -->

    <!-- BEGIN PAGE -->

    <div class="page-content">



        <!-- BEGIN STYLE CUSTOMIZER -->

        <include file="Inc/theme"/>

        <!-- END BEGIN STYLE CUSTOMIZER -->

        <!-- BEGIN PAGE HEADER-->

        <div class="row">

            <div class="col-md-12">

                <!-- BEGIN PAGE TITLE & BREADCRUMB-->

                <h3 class="page-title">

                    {$cfg.title}<if condition="$dataInfo.id gt 0 ">编辑工单<else />编辑工单</if> <small></small>

                </h3>

                <ul class="page-breadcrumb breadcrumb">

                    <li><i class="fa fa-home"></i><a href="{:U('Index/index')}">首页</a> <i class="fa fa-angle-right"></i></li>

                    <li><a href="#">工单管理</a><i class="fa fa-angle-right"></i></li>

                    <li><a href="#">{$cfg.title}<if condition="$dataInfo.id gt 0 ">编辑工单<else />编辑工单</if></a><i class="fa fa-angle-right"></i></li>

                </ul>					<!-- END PAGE TITLE & BREADCRUMB-->

            </div>

        </div>

        <!-- END PAGE HEADER-->

        <!-- BEGIN PAGE CONTENT-->

        <div class="row">

            <div class="col-md-12">

                <!-- BEGIN EXAMPLE TABLE PORTLET-->

                <div class="portlet">

                    <!--

                    <div class="portlet-title">

                        <div class="caption">

                            <i class="fa fa-reorder"></i>站点信息

                        </div>

                    </div>-->

                    <form class="form-horizontal" action="{:U('RefundOrder/save')}"  id="submit_form" method="post">

                        <input type="hidden" name="order_id" value="{$arr.order_id}" />
                        <input type="hidden" name="log_id" value="{$arr.log_id}" />

                        <!-- <input type="hidden" name="back_url" value="{$back_url}" />

                        <input type="hidden" name="status" id="status" value="">

                        <input type="hidden" name="order_detail_id" id="order_detail_id" value="{$dataInfo.order_detail_id}"> -->



                        <div class="portlet-body form">

                            <!-- BEGIN FORM-->

                            <div class="form-body">

                                <div class="form-group">

                                    <label class="col-md-3 control-label">订单号：</label>

                                    <div class="col-md-4">

                                        <input type="text" name="order_no" class="form-control" readonly value="{$arr["order_no"]}"/>

                                    </div>

                                </div>

                                <div class="form-group">

                                    <label class="col-md-3 control-label">录入时间：</label>

                                    <div class="col-md-4">

                                        <input type="text" class="form-control" readonly value="{$arr["addtime"]}"/>

                                    </div>

                                </div>

                            
                                <div class="form-group">

                                    <label class="col-md-3 control-label">录入备注：</label>

                                    <div class="col-md-4">

                                        <textarea class="form-control" name="log_content">{$arr.log_content}</textarea>

                                    </div>

                                </div>
                                <div class="form-group">
                                    <label class="col-md-3 control-label">工单类型：</label>
                                    <div class="col-md-4">
                                        <select name="log_type" class="form-control">
                                            <option value='0' <if condition='$arr.log_type eq 0'>selected</if>>回访</option>
                                            <option value='1' <if condition='$arr.log_type eq 1'>selected</if>>投诉</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">

                                    <label class="col-md-3 control-label">处理状态：</label>

                                    <div class="col-md-4">
                                        <select name="log_status" class="form-control">
                                            <option value='0' <if condition='$arr.log_status eq 0'>selected</if>>待处理</option>
                                            <option value='1' <if condition='$arr.log_status eq 1'>selected</if>>已处理</option>
                                        </select>


                                    </div>

                                </div>

                                <div class="form-group">

                                    <label class="col-md-3 control-label">处理结果：</label>

                                    <div class="col-md-4">

                                        <textarea class="form-control" name="log_end">{$arr.log_end}</textarea>


                                    </div>

                                </div>

                                <!-- <PHP>$pics=json_decode($dataInfo['pics']);</PHP>

                                <volist name="pics" key="key" id="item">

                                    <if condition ="$item">

                                    <div class="form-group">

                                        <label class="col-md-3 control-label">照片{$key}：</label>

                                        <div class="col-md-4">

                                            <img src="__UPLOAD__/{$item}" width="200"></div>

                                        </div>

                                    </div>

                                    </if>

                                </volist> -->

                            </div>

                        </div>

                        <div class="form-actions top fluid ">

                            <div class="col-md-offset-3 col-md-9">

                                <!-- <if condition="$dataInfo['status'] neq 3">

                                <button class="btn green" type="submit" onclick="$('#status').val('2')">审核通过</button>

                                <button class="btn blue" type="submit" onclick="$('#status').val('3')">直接退款</button>


                                </if> -->
                                <button class="btn green" type="submit" >保存记录</button>

                                <button class="btn dark" type="button" id="cancel" onclick="window.location.href='javascript:history.go(-1)'">返回上级</button>

                            </div>

                        </div>

                    </form>

                    <!-- END FORM-->







                </div>

            </div>

            <!-- END EXAMPLE TABLE PORTLET-->

        </div>

    </div>

    <!-- END PAGE CONTENT -->

</div>

<!-- END CONTAINER -->

<!-- BEGIN FOOTER -->

<include file="Inc/foot"/>

<!-- END FOOTER -->

<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->



<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL SCRIPTS -->

<script src="__JS__/app.js" type="text/javascript"></script>

<script src="__JS__/form-components.js"></script>

<script src="__JS__/controllers/refund_order/edit.js" type="text/javascript"></script>



<!-- END PAGE LEVEL SCRIPTS -->

<script>

    jQuery(document).ready(function() {

        App.init(); // initlayout and core plugins

        NewValidation.init();

        FormComponents.init();

    });

</script>

</body>

<!-- END BODY -->

</html>